package avicit.bdp.dms.dss.dto;

import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import java.io.Serializable;

/**
 * @金航数码科技有限责任公司
 * @作者：developer
 * @邮箱：developer@avic-digital.com
 * @创建时间： 2021-03-29 17:35
 * @类说明：
 * @修改记录：
 */
@Entity
public class ColumnInfoDto implements Serializable, Comparable<ColumnInfoDto> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "字段名称")
    private String name;

    @ApiModelProperty(value = "中文名称")
    private String cnName;

    @ApiModelProperty(value = " 数据类型")
    private String type;

    @ApiModelProperty(value = "是否参数 是：1，否：0")
    private Integer param;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCnName() {
        return cnName;
    }

    public void setCnName(String cnName) {
        this.cnName = cnName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getParam() {
        return param;
    }

    public void setParam(Integer param) {
        this.param = param;
    }

    @Override
    public int compareTo(ColumnInfoDto obj) {
        return this.name.compareTo(obj.getName());
    }

}
